﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReviewCurveApp.Classes
{
    /// <summary>
    ///  复习记录
    /// </summary>
    public class Task
    {
        public Task(int sequnce, DateTime? orderTime,string description)
        {
            _Sequnce = sequnce;
            _ScheduledTime = orderTime;
            _Description = description;
        }



        private int _Sequnce;
        /// <summary>
        /// 顺序，第几次复习
        /// </summary>
        public int Sequnce 
        { 
            get { return _Sequnce; } 
        }

        private DateTime? _ScheduledTime;
        /// <summary>
        /// 预订复习时间
        /// </summary>
        public DateTime? ScheduledTime 
        {
            get { return _ScheduledTime; } 
        }
        
        private string _Description;

        public string Description
        {
            get { return _Description; }
        }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompletedDateTime { get; set; }


        public override string ToString()
        {
            return Description + "\t第" + Sequnce.ToString()+"次 Review"+"\t";
        }

        /// <summary>
        /// 复习完成时间
        /// </summary>
        //public DateTime? FinishedTime { get;}
        
        /// <summary>
        /// 复习情况备注
        /// </summary>
        //public string Remark { get; }


        public int UnitId { get; set; }

        public int Id { get; set; }
        
        public TaskStatus Status { get; set; }






    }
}
